﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        struct PersonStruct
        {
           public string name;
            public int telephone;
            public string adress;
        }
        static void Main(string[] args)
        {
            //Class1 class1 = new Class1();
            //class1.abc(null);
            PersonStruct p1;
            p1.name = "积分";
            p1.telephone = 123;
            p1.adress = "福建";
            PersonStruct p2=p1;
            p2.name = "大哥";
           
            Console.WriteLine(p1.name);
            Console.WriteLine(p1.telephone);
            Console.WriteLine(p1.adress);
            Console.WriteLine(p2.name);
            Console.WriteLine(p2.telephone);
            Console.WriteLine(p2.adress);
            Console.WriteLine();
            PersonClass p3=new PersonClass();
           
            p3.name = "垃圾";
            p3.telephone = 456;
            p3.adress = "广东";
            PersonClass p4 = new PersonClass();
            p4 = p3;
            p4.name = "张张";
          
            Console.WriteLine(p3.name);
            Console.WriteLine(p3.telephone);
            Console.WriteLine(p3.adress);
            Console.WriteLine(p4.name);
            Console.WriteLine(p4.telephone);
            Console.WriteLine(p4.adress);
        }
    }
}
